﻿<UserControl x:Class="SLGridDemo.MainPage"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"  
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">

    <Grid x:Name="LayoutRoot" 
          Background="White" HorizontalAlignment="Stretch"
          VerticalAlignment="Stretch">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="20*" />
            <ColumnDefinition Width="2" />
            <ColumnDefinition Width="10*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="30*" />
            <RowDefinition Height="2" />
            <RowDefinition Height="10*" />
        </Grid.RowDefinitions>
        
        <sdk:GridSplitter x:Name="VerticalGridSplitter"
                          Grid.Row="0" Grid.RowSpan="3"
                          Grid.Column="1"
                          VerticalAlignment="Stretch"
                          HorizontalAlignment="Center"
                          />
        <sdk:GridSplitter x:Name="HorizontalGridSplitter"
                          Grid.Column="0" Grid.ColumnSpan="3"
                          Grid.Row="1"
                          VerticalAlignment="Center"
                          HorizontalAlignment="Stretch"
                          />
        
        <Button Grid.Row="0" Grid.Column="0"
                Background="Red" Content="Red color"/>
        <Button Grid.Row="0" Grid.Column="2"
                Background="Green" Content="Green color"/>
        <Button Grid.Row="2" Grid.Column="0"
                Background="Blue" Content="Blue color"/>
        <Button Grid.Row="2" Grid.Column="2"
                Background="Gold"  Content="Gold color"/>
    </Grid>
</UserControl>
